//
//  StatusScene.h
//  PlantNanny
//
//  Created by Joueu on 14-12-24.
//
//

#ifndef __PlantNanny__StatusScene__
#define __PlantNanny__StatusScene__

#include "cocos2d.h"
#include "cocos-ext.h"
#include "XKProgressTimer.h"

USING_NS_CC;
USING_NS_CC_EXT;

class StatusScene: public Scene
{
public:
    static StatusScene *createScene();
    virtual bool init();
private:
    Layer *m_layer;
    void createNavi();
    virtual void onEnter();
    virtual void onExit();
private:
    XKProgressTimer *m_progress;
    
    ui::Scale9Sprite *_container;
    
    Label *haveDrinkLbl;
    Label *toDrinkLbl;
    
    float haveDrinked;
    float toDrink;
    
    float mexp;
    float lvExp;
private:
    int tmpForAnimation;
    void initData();
    void delelteBtnPressed(Ref *pSender, ui::Button::TouchEventType type);
    virtual void update(float delta);
    void updateLbl(float num);
};

#endif /* defined(__PlantNanny__StatusScene__) */
